const requestFn = require('../request.js')

const baseUrl = "user/"
const API = {
  login :"login",
  logOut:"logout",
  updateUser:'update',
  updateUser:"update"
}

function login(data){
  return requestFn.login(baseUrl+API.login,data,"POST")
}
function logOut(data,session){
  console.log(data,session)
  return requestFn.request(baseUrl+API.logOut,data,"POST",session)
}
function updateUser(data,session){
  console.log(222)
  return requestFn.request(baseUrl+API.updateUser,data,"POST",session)
}
module.exports = {
  login,
  logOut,
  updateUser,
}